package jindu.zzh.gj.jinduriddle.riddle.view;

import android.content.Context;
import android.support.annotation.Nullable;
import android.support.v7.widget.AppCompatTextView;
import android.util.AttributeSet;

import jindu.zzh.gj.jinduriddle.riddle.utils.TypeFaceUtil;


/**
 * Created by reeman on 2017/12/15.
 */

public class MyTextView extends AppCompatTextView {
    public MyTextView(Context context) {
        super(context);
        init();
    }

    public MyTextView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        init();
    }

    public MyTextView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init();
    }

    private void init() {
//        setTextColor(Color.BLACK);
        setTypeface(TypeFaceUtil.getTypeface("楷体.ttf"));
    }

}
